﻿Imports System.Windows.Forms

Public Class sendmessage
    Public ListofRecipient As New ArrayList
    Public Message As String
    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
        Dim RecStrings() As String
        RecStrings = txtrecipient.Text.Split(" ")
        For Each item As String In RecStrings
            ListofRecipient.Add(item)
        Next

        Message = txtmessage.Text
        Me.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.Close()
    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

End Class
